package com.lifeng.finance.demo.mapper;

import com.lifeng.finance.demo.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CustomerMapper {
    List<Customer> findAll();
    Customer findOneById(@Param("id") int id);
    List<Customer> findSomeByName(@Param("name") String name);
    void add(Customer customer);
    void update(Customer customer);

}
